var mongoose=require("mongoose");
var shortid=require("shortid");
var UserSchema=new mongoose.Schema(
	{
		_id:{
			type:String,
			unique:true,
			'default': shortid.generate
		},
		username:String,
		password:String,
		phone:String,
		nickname:String,
		age:Number,
		createtime:{
			type:Date,
			'default':Date.now
		}
	}
);
var User=mongoose.model("User",UserSchema);
module.exports=User;